﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Web.Admin.Page
{
    public partial class Edit : Evan.WebUI.DetailManager
    {

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                bool HasRole = Evan.Member.Administrator.HasRole(1, ClassId.ToString(), "", "view");
                VerifyRoles(HasRole);

                string curTitle = Evan.Model.ConvertModel.HasKey(Model, "Title") ? Model.Title : "";
                Evan.SystemLog.SysLog.AddSysLog("查看 [" + curTitle + "] 内容 ", "查看内容 [表名称=" + TableName + "] , [栏目名称=" + CurChannel.Title + "] , 查看内容标题 [" + curTitle + "]");
            }
            
        }

        public dynamic GetRelateChannelList(int classid)
        {
            return new Evan.DataBase.DbOperat("Channel").GetList_1(0, "ParentId=@0 and States=1", "SortId asc,AddTime asc", classid);
        }
    }
}